package com.learn.springcloud.feigncodingconfigurationconsumer.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Time : 2018/8/11 15:32
 * @Version : 1.0
 */
@FeignClient(name = "xxxx", url = "http://localhost:1111")
public interface FeignTestClient2 {

    @RequestMapping(value="/eureka/apps/{serviceName}",method=RequestMethod.GET)
    String get(@PathVariable("serviceName") String serviceName);

}
